package com.healthcloud.service;

import java.util.List;

import com.healthcloud.entity.BusInstrumentEntity;
import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

/**
 * Created by houxianghua on 2015/7/23.
 */
public interface BusInstrumentService {

    List<BusInstrumentEntity> search(BusInstrumentEntity entity, PageParam pageParam);

    int count(BusInstrumentEntity entity);

    BusInstrumentEntity searchById(Long id);

    int createInstr(BusInstrumentEntity entity);

    int updateInstr(BusInstrumentEntity entity);

    int deleteInstr(int id);

    int deletes(int[] ids);

    List<BusInstrumentEntity> searchByName(String instrumentType, String offset, String limit, Long hospId);

    int countByName(String instrumentType, Long hospId);

    List<BusInstrumentEntity> findSNByIdCard(BusInstrumentEntity entity);

    void createInstr(List<BusInstrumentEntity> instruments);

    List<String> getOpenID(String mKMedicalinstrumentId);

    /*int save(Instrument entity);

    int update(Instrument entity);

    int logicalDelete(int id);

    int logicalDeletes(int[] ids);

    void saveBatch(List<Instrument> instrumentList);*/

    List<BusInstrumentEntity> listByUserId(Long userId);

    BusInstrumentEntity getBySnAndIdCard(String sn, String idCard);
}
